month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
day = 0
sum_1 = 0
# 从1901年开始
for year in range(1901, 2001):
    # 判断闰年  闰年的二月29天
    if (year % 4 == 0) and (year % 100 != 0) or (year % 400 == 0):
        month[1] = 29

    for mon in range(1, 13):
        day += month[mon - 1]
        if day % 7 == 0:
            sum_1 += 1
print(sum_1)
